Repository navigation
chore: add a Cursor manifest to the plugin - #46
Merged
Merged
Conversation
Cursor reads a plugin from .cursor-plugin/plugin.json and finds it in a repository through .cursor-plugin/marketplace.json at the root. The new manifest points at the same skill folder and reuses the listing icon of the Claude Code plugin. Tests keep its version, name and description in step with the package and the Claude Code manifest, and the metadata check covers its links. The plugin README now says "a coding agent" where it said "Claude".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
plugins/agent-commerce-gateway/.cursor-plugin/plugin.json: a Cursor plugin manifest for the existing plugin folder. Same name, display name, description, version and license as the Claude Code manifest;skillspoints at the sameskills/folder, andlogoreuses.claude-plugin/icon.png..cursor-plugin/marketplace.json: lists the plugin from./plugins/agent-commerce-gateway, the same source as.claude-plugin/marketplace.json.tests/unit/cli/skill.test.ts: checks that the Cursor manifest has the package version and license, matches the Claude Code manifest, is listed from the plugin folder, and uses relative paths to files that exist.scripts/check-package-metadata.mjs: also checksrepositoryandhomepagein the Cursor manifest.plugins/agent-commerce-gateway/README.md: "helps Claude" and "tells Claude" become "helps a coding agent" and "tells the agent".The skill files are unchanged.
Why
Cursor reads a plugin from
.cursor-plugin/plugin.jsonand finds it in a repository through.cursor-plugin/marketplace.jsonat the root (plugins reference). With both files in place, the repository can be submitted to the Cursor Marketplace (cursor.com/marketplace/publish) and to cursor.directory.Cursor's manifest schema rejects unknown fields, so the Claude-only fields (
documentationUrl,supportUrl,privacyPolicyUrl,termsOfServiceUrl) are not copied.Release note
Each release now bumps
versionin both plugin manifests. The new test fails if.cursor-plugin/plugin.jsonis left behind.How it was tested
On Node 22.23.2 after
npm ci:schemas/in cursor/plugins @ bf0c7cd), with the same checks as theirscripts/validate-plugins.mjs: names match, manifest versions match, paths are relative and exist. A copy with an unknown field, a different version and a..logo path fails all three.npx vitest run tests/unit/cli/skill.test.ts: 13 passed. With the Cursor version set to 2.7.1, the version test fails.npm run check:contract,npm run lint,npm run typecheck,node scripts/check-package-metadata.mjs: OK.claude plugin validate ./plugins/agent-commerce-gatewayandclaude plugin validate .: pass. The only warnings are the four listing fields in.claude-plugin/plugin.json(documentationUrl,supportUrl,privacyPolicyUrl,termsOfServiceUrl), which this PR does not change.npm run test:coverage: 3880 passed, 5 failed, 6 skipped. Three failures werepackaging.test.tsagainst a stale localdist; afternpm run buildthat file passes (37). The other two are the macOS-onlygateway-entrypointfailures (bash 3.2 has nomapfile), which fail the same way on master.Not covered
npx skills addagainst this branch. The skill path is unchanged.